home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 24
/
CU Amiga Magazine's Super CD-ROM 24 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-07].iso
/
Scalos
/
RenderLib
/
doc
/
memory
< prev
next >
Wrap
Text File
|
1997-09-10
|
2KB
|
68 lines
memory consumption
-----------------------------
this is a rough overview to memory consumption. this may and will
change in the future, you must not rely on these data.
> histograms
HSTYPE (1) (2)³ [bytes]
------------------------------------------------------------------
12BIT 20×n¹ 6×n
15BIT 20×n¹ 6×n
18BIT 20×n¹ 6×n
21BIT 20×n¹ 6×n
24BIT 20×n¹ 6×n
12BIT_TURBO 16.384² 6×n
15BIT_TURBO 131.072² 6×n
18BIT_TURBO 1.048.576² 6×n
(1) memory consumed by the histogram
(2) additional buffers for ExtractPalette()³.
n = number of color entries inside the histogram
¹ allocated dynamically
² allocated with CreateHistogram()
³ 8×n for the 68020 version
> palettes
HSTYPE (1) [bytes]
------------------------------------------------------------------
12BIT 8.192
15BIT 65.536
18BIT 524.288
(1) Render(), ConvertChunky(), MapRGBArray(), RGBArrayDiversity(),
ChunkyArrayDiversity()
the memory will be allocated as soon as one of the above functions
is called. if the allocation fails, the palette falls back to the
next lower resolution.
the memory will be freed whenever the palette changes, i.e. when
ImportPalette(), ExtractPalette(), SortPalette() etc. are being
called. you may also call FlushPalette() at any time to manually
free these buffers.
> mapping-engines
HSTYPE¹ (1) (2) [bytes]
------------------------------------------------------------------
12BIT 4.096 4.608
15BIT 32.768 36.864
18BIT 262.144 294.912
¹of the palette being assigned to
(1) CreateMapEngine() - normal
(2) CreateMapEngine() - coupled with a histogram